package edu.gxmzu.task.params;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import org.springframework.web.multipart.MultipartFile;

@Data
public class NewTaskParam {
    @Schema(description = "任务名称(标题)" )
    @NotNull(message = "任务名称(标题)不能为空!")
    private String title;
    @Schema(description = "任务内容")
    @NotNull(message = "任务内容不能为空!")
    private String content;
    @Schema(description = "任务要求")
    private String require;
    @Schema(description = "结束时间的时间戳")
    @NotNull(message = "结束时间不能为空!")
    private String endTime;
    @Schema(description = "任务附件")
    private MultipartFile file;
}
